//package com.hry.springboot.sharding.jdbc.algorithm;
//
//import com.alibaba.druid.support.json.JSONUtils;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.shardingsphere.api.sharding.complex.ComplexKeysShardingAlgorithm;
//import org.apache.shardingsphere.api.sharding.complex.ComplexKeysShardingValue;
//
//import java.util.*;
//
///**
// * @Desc
// * @Author houruiyang
// * @Date 2021/8/13
// **/
//@Slf4j
//public class ComplexShardingAlgorithm implements ComplexKeysShardingAlgorithm {
//    public ComplexShardingAlgorithm() {
//    }
//
//    @Override
//    public Collection<String> doSharding(Collection collection, ComplexKeysShardingValue complexKeysShardingValue) {
//        Map valuesMap = complexKeysShardingValue.getColumnNameAndShardingValuesMap();
//        if (valuesMap.containsKey("user_id") && valuesMap.containsKey("id")) {
//            return null;
//
//        }
//
//        return collection;
//
//    }
//}
